package com.wl.common.system.support.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author: wanglin
 * @date: 2023-05-30 周二
 * @Version: 1.0
 * @Description:
 */
@Data
@Schema(description = "注册入参")
public class RegisterDTO {
    @Size(max = 20, message = "用户账号长度不能超过20个字符")
    @NotBlank(message = "账号不能为空")
    @Schema(description = "账号")
    private String userId;

    @Size(max = 20, message = "姓名长度不能超过20个字符")
    @NotBlank(message = "姓名不能为空")
    @Schema(description = "姓名")
    private String name;

    @Size(min = 6, max = 16, message = "密码至少包含：数字,英文,字符中的两种以上，密码长度为6~16个字符")
    @NotBlank(message = "密码不能为空")
    @Schema(description = "密码")
    private String password;
}
